
// 表单校验规则由 schema2code 生成，不建议直接修改校验规则，而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema



const validator = {
  "hotelName": {
    "rules": [
      {
        "required": true
      },
      {
        "format": "string"
      }
    ],
    "label": "名称"
  },
  "hotel_desc": {
    "rules": [
      {
        "format": "string"
      }
    ],
    "label": "详细描述"
  },
  "hotel_image": {
    "rules": [
      {
        "format": "string"
      },
      {
        "pattern": "^(http://|https://|/|./|@/)\\S"
      }
    ],
    "label": "缩略图地址"
  },
  "hotel_address": {
    "rules": [
      {
        "required": true
      },
      {
        "format": "string"
      }
    ],
    "label": "详细地址"
  },
  "serviceList": {
    "rules": [
      {
        "format": "array"
      }
    ],
    "label": "服务"
  },
  "serviceNameList": {
    "rules": [
      {
        "format": "array"
      }
    ],
    "label": "服务名称"
  },
  "phone": {
    "rules": [
      {
        "required": true
      },
      {
        "format": "string"
      }
    ],
    "label": "电话"
  },
  "number": {
    "rules": [
      {
        "format": "int"
      }
    ],
    "label": "人数"
  },
  "price": {
    "rules": [
      {
        "format": "int"
      }
    ],
    "label": "价格"
  },
  "district": {
    "rules": [
      {
        "format": "string"
      }
    ],
    "label": "附近商圈"
  },
  "city": {
    "rules": [
      {
        "format": "string"
      }
    ],
    "label": "所在城市"
  },
  "is_on_open": {
    "rules": [
      {
        "format": "bool"
      }
    ],
    "label": "是否营业"
  }
}

const enumConverter = {}

export { validator, enumConverter }
